import request from '@/utils/request';

export async function order_list(params?: any) {
  return request('/api/order/order_list/', {
    method: 'GET',
    params,
  });
}

export async function order_create(params?: any) {
  return request('/api/order/order_create/', {
    method: 'POST',
    params,
  });
}
export async function orderproduct_create(params?: any) {
  return request('/api/orderproduct/orderproduct_create/', {
    method: 'POST',
    params,
  });
}
export async function order_update(params?: any) {
  return request('/api/order/order_update/', {
    method: 'POST',
    params,
  });
}

export async function orderproduct_list(params?: any) {
  return request('/api/orderproduct/orderproduct_list/', {
    method: 'GET',
    params,
  });
}
export async function productadd_list(params?: any) {
  return request('/api/product/productadd_list/', {
    method: 'GET',
    params,
  });
}
export async function device_list(params?: any) {
  return request('/api/device/device_list/', {
    method: 'GET',
    params,
  });
}

export async function result_get(params?: any) {
  return request('/api/device/result_get/', {
    method: 'GET',
    params,
  });
}
export async function row_result_get(params?: any) {
  return request('/api/device/row_result_get/', {
    method: 'GET',
    params,
  });
}
export async function row_result_set(params?: any) {
  return request('/api/device/row_result_set/', {
    method: 'POST',
    params,
  });
}